package com.attendance.www.hr.entitys;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ApprovalRuleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ApprovalRuleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andApprovalRuleIdIsNull() {
            addCriterion("approval_rule_id is null");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdIsNotNull() {
            addCriterion("approval_rule_id is not null");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdEqualTo(Integer value) {
            addCriterion("approval_rule_id =", value, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdNotEqualTo(Integer value) {
            addCriterion("approval_rule_id <>", value, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdGreaterThan(Integer value) {
            addCriterion("approval_rule_id >", value, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("approval_rule_id >=", value, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdLessThan(Integer value) {
            addCriterion("approval_rule_id <", value, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdLessThanOrEqualTo(Integer value) {
            addCriterion("approval_rule_id <=", value, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdIn(List<Integer> values) {
            addCriterion("approval_rule_id in", values, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdNotIn(List<Integer> values) {
            addCriterion("approval_rule_id not in", values, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdBetween(Integer value1, Integer value2) {
            addCriterion("approval_rule_id between", value1, value2, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andApprovalRuleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("approval_rule_id not between", value1, value2, "approvalRuleId");
            return (Criteria) this;
        }

        public Criteria andRequestTypeIsNull() {
            addCriterion("request_type is null");
            return (Criteria) this;
        }

        public Criteria andRequestTypeIsNotNull() {
            addCriterion("request_type is not null");
            return (Criteria) this;
        }

        public Criteria andRequestTypeEqualTo(Integer value) {
            addCriterion("request_type =", value, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestTypeNotEqualTo(Integer value) {
            addCriterion("request_type <>", value, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestTypeGreaterThan(Integer value) {
            addCriterion("request_type >", value, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("request_type >=", value, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestTypeLessThan(Integer value) {
            addCriterion("request_type <", value, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestTypeLessThanOrEqualTo(Integer value) {
            addCriterion("request_type <=", value, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestTypeIn(List<Integer> values) {
            addCriterion("request_type in", values, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestTypeNotIn(List<Integer> values) {
            addCriterion("request_type not in", values, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestTypeBetween(Integer value1, Integer value2) {
            addCriterion("request_type between", value1, value2, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("request_type not between", value1, value2, "requestType");
            return (Criteria) this;
        }

        public Criteria andRequestRoleIsNull() {
            addCriterion("request_role is null");
            return (Criteria) this;
        }

        public Criteria andRequestRoleIsNotNull() {
            addCriterion("request_role is not null");
            return (Criteria) this;
        }

        public Criteria andRequestRoleEqualTo(Integer value) {
            addCriterion("request_role =", value, "requestRole");
            return (Criteria) this;
        }

        public Criteria andRequestRoleNotEqualTo(Integer value) {
            addCriterion("request_role <>", value, "requestRole");
            return (Criteria) this;
        }

        public Criteria andRequestRoleGreaterThan(Integer value) {
            addCriterion("request_role >", value, "requestRole");
            return (Criteria) this;
        }

        public Criteria andRequestRoleGreaterThanOrEqualTo(Integer value) {
            addCriterion("request_role >=", value, "requestRole");
            return (Criteria) this;
        }

        public Criteria andRequestRoleLessThan(Integer value) {
            addCriterion("request_role <", value, "requestRole");
            return (Criteria) this;
        }

        public Criteria andRequestRoleLessThanOrEqualTo(Integer value) {
            addCriterion("request_role <=", value, "requestRole");
            return (Criteria) this;
        }

        public Criteria andRequestRoleIn(List<Integer> values) {
            addCriterion("request_role in", values, "requestRole");
            return (Criteria) this;
        }

        public Criteria andRequestRoleNotIn(List<Integer> values) {
            addCriterion("request_role not in", values, "requestRole");
            return (Criteria) this;
        }

        public Criteria andRequestRoleBetween(Integer value1, Integer value2) {
            addCriterion("request_role between", value1, value2, "requestRole");
            return (Criteria) this;
        }

        public Criteria andRequestRoleNotBetween(Integer value1, Integer value2) {
            addCriterion("request_role not between", value1, value2, "requestRole");
            return (Criteria) this;
        }

        public Criteria andFromDaysIsNull() {
            addCriterion("from_days is null");
            return (Criteria) this;
        }

        public Criteria andFromDaysIsNotNull() {
            addCriterion("from_days is not null");
            return (Criteria) this;
        }

        public Criteria andFromDaysEqualTo(Integer value) {
            addCriterion("from_days =", value, "fromDays");
            return (Criteria) this;
        }

        public Criteria andFromDaysNotEqualTo(Integer value) {
            addCriterion("from_days <>", value, "fromDays");
            return (Criteria) this;
        }

        public Criteria andFromDaysGreaterThan(Integer value) {
            addCriterion("from_days >", value, "fromDays");
            return (Criteria) this;
        }

        public Criteria andFromDaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("from_days >=", value, "fromDays");
            return (Criteria) this;
        }

        public Criteria andFromDaysLessThan(Integer value) {
            addCriterion("from_days <", value, "fromDays");
            return (Criteria) this;
        }

        public Criteria andFromDaysLessThanOrEqualTo(Integer value) {
            addCriterion("from_days <=", value, "fromDays");
            return (Criteria) this;
        }

        public Criteria andFromDaysIn(List<Integer> values) {
            addCriterion("from_days in", values, "fromDays");
            return (Criteria) this;
        }

        public Criteria andFromDaysNotIn(List<Integer> values) {
            addCriterion("from_days not in", values, "fromDays");
            return (Criteria) this;
        }

        public Criteria andFromDaysBetween(Integer value1, Integer value2) {
            addCriterion("from_days between", value1, value2, "fromDays");
            return (Criteria) this;
        }

        public Criteria andFromDaysNotBetween(Integer value1, Integer value2) {
            addCriterion("from_days not between", value1, value2, "fromDays");
            return (Criteria) this;
        }

        public Criteria andToDaysIsNull() {
            addCriterion("to_days is null");
            return (Criteria) this;
        }

        public Criteria andToDaysIsNotNull() {
            addCriterion("to_days is not null");
            return (Criteria) this;
        }

        public Criteria andToDaysEqualTo(Integer value) {
            addCriterion("to_days =", value, "toDays");
            return (Criteria) this;
        }

        public Criteria andToDaysNotEqualTo(Integer value) {
            addCriterion("to_days <>", value, "toDays");
            return (Criteria) this;
        }

        public Criteria andToDaysGreaterThan(Integer value) {
            addCriterion("to_days >", value, "toDays");
            return (Criteria) this;
        }

        public Criteria andToDaysGreaterThanOrEqualTo(Integer value) {
            addCriterion("to_days >=", value, "toDays");
            return (Criteria) this;
        }

        public Criteria andToDaysLessThan(Integer value) {
            addCriterion("to_days <", value, "toDays");
            return (Criteria) this;
        }

        public Criteria andToDaysLessThanOrEqualTo(Integer value) {
            addCriterion("to_days <=", value, "toDays");
            return (Criteria) this;
        }

        public Criteria andToDaysIn(List<Integer> values) {
            addCriterion("to_days in", values, "toDays");
            return (Criteria) this;
        }

        public Criteria andToDaysNotIn(List<Integer> values) {
            addCriterion("to_days not in", values, "toDays");
            return (Criteria) this;
        }

        public Criteria andToDaysBetween(Integer value1, Integer value2) {
            addCriterion("to_days between", value1, value2, "toDays");
            return (Criteria) this;
        }

        public Criteria andToDaysNotBetween(Integer value1, Integer value2) {
            addCriterion("to_days not between", value1, value2, "toDays");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleIsNull() {
            addCriterion("lowest_approval_role is null");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleIsNotNull() {
            addCriterion("lowest_approval_role is not null");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleEqualTo(Integer value) {
            addCriterion("lowest_approval_role =", value, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleNotEqualTo(Integer value) {
            addCriterion("lowest_approval_role <>", value, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleGreaterThan(Integer value) {
            addCriterion("lowest_approval_role >", value, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleGreaterThanOrEqualTo(Integer value) {
            addCriterion("lowest_approval_role >=", value, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleLessThan(Integer value) {
            addCriterion("lowest_approval_role <", value, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleLessThanOrEqualTo(Integer value) {
            addCriterion("lowest_approval_role <=", value, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleIn(List<Integer> values) {
            addCriterion("lowest_approval_role in", values, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleNotIn(List<Integer> values) {
            addCriterion("lowest_approval_role not in", values, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleBetween(Integer value1, Integer value2) {
            addCriterion("lowest_approval_role between", value1, value2, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andLowestApprovalRoleNotBetween(Integer value1, Integer value2) {
            addCriterion("lowest_approval_role not between", value1, value2, "lowestApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleIsNull() {
            addCriterion("one_approval_role is null");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleIsNotNull() {
            addCriterion("one_approval_role is not null");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleEqualTo(Integer value) {
            addCriterion("one_approval_role =", value, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleNotEqualTo(Integer value) {
            addCriterion("one_approval_role <>", value, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleGreaterThan(Integer value) {
            addCriterion("one_approval_role >", value, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleGreaterThanOrEqualTo(Integer value) {
            addCriterion("one_approval_role >=", value, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleLessThan(Integer value) {
            addCriterion("one_approval_role <", value, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleLessThanOrEqualTo(Integer value) {
            addCriterion("one_approval_role <=", value, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleIn(List<Integer> values) {
            addCriterion("one_approval_role in", values, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleNotIn(List<Integer> values) {
            addCriterion("one_approval_role not in", values, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleBetween(Integer value1, Integer value2) {
            addCriterion("one_approval_role between", value1, value2, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andOneApprovalRoleNotBetween(Integer value1, Integer value2) {
            addCriterion("one_approval_role not between", value1, value2, "oneApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleIsNull() {
            addCriterion("two_approval_role is null");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleIsNotNull() {
            addCriterion("two_approval_role is not null");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleEqualTo(Integer value) {
            addCriterion("two_approval_role =", value, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleNotEqualTo(Integer value) {
            addCriterion("two_approval_role <>", value, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleGreaterThan(Integer value) {
            addCriterion("two_approval_role >", value, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleGreaterThanOrEqualTo(Integer value) {
            addCriterion("two_approval_role >=", value, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleLessThan(Integer value) {
            addCriterion("two_approval_role <", value, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleLessThanOrEqualTo(Integer value) {
            addCriterion("two_approval_role <=", value, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleIn(List<Integer> values) {
            addCriterion("two_approval_role in", values, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleNotIn(List<Integer> values) {
            addCriterion("two_approval_role not in", values, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleBetween(Integer value1, Integer value2) {
            addCriterion("two_approval_role between", value1, value2, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andTwoApprovalRoleNotBetween(Integer value1, Integer value2) {
            addCriterion("two_approval_role not between", value1, value2, "twoApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleIsNull() {
            addCriterion("three_approval_role is null");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleIsNotNull() {
            addCriterion("three_approval_role is not null");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleEqualTo(Integer value) {
            addCriterion("three_approval_role =", value, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleNotEqualTo(Integer value) {
            addCriterion("three_approval_role <>", value, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleGreaterThan(Integer value) {
            addCriterion("three_approval_role >", value, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleGreaterThanOrEqualTo(Integer value) {
            addCriterion("three_approval_role >=", value, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleLessThan(Integer value) {
            addCriterion("three_approval_role <", value, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleLessThanOrEqualTo(Integer value) {
            addCriterion("three_approval_role <=", value, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleIn(List<Integer> values) {
            addCriterion("three_approval_role in", values, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleNotIn(List<Integer> values) {
            addCriterion("three_approval_role not in", values, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleBetween(Integer value1, Integer value2) {
            addCriterion("three_approval_role between", value1, value2, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andThreeApprovalRoleNotBetween(Integer value1, Integer value2) {
            addCriterion("three_approval_role not between", value1, value2, "threeApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleIsNull() {
            addCriterion("four_approval_role is null");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleIsNotNull() {
            addCriterion("four_approval_role is not null");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleEqualTo(Integer value) {
            addCriterion("four_approval_role =", value, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleNotEqualTo(Integer value) {
            addCriterion("four_approval_role <>", value, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleGreaterThan(Integer value) {
            addCriterion("four_approval_role >", value, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleGreaterThanOrEqualTo(Integer value) {
            addCriterion("four_approval_role >=", value, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleLessThan(Integer value) {
            addCriterion("four_approval_role <", value, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleLessThanOrEqualTo(Integer value) {
            addCriterion("four_approval_role <=", value, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleIn(List<Integer> values) {
            addCriterion("four_approval_role in", values, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleNotIn(List<Integer> values) {
            addCriterion("four_approval_role not in", values, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleBetween(Integer value1, Integer value2) {
            addCriterion("four_approval_role between", value1, value2, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFourApprovalRoleNotBetween(Integer value1, Integer value2) {
            addCriterion("four_approval_role not between", value1, value2, "fourApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleIsNull() {
            addCriterion("five_approval_role is null");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleIsNotNull() {
            addCriterion("five_approval_role is not null");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleEqualTo(Integer value) {
            addCriterion("five_approval_role =", value, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleNotEqualTo(Integer value) {
            addCriterion("five_approval_role <>", value, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleGreaterThan(Integer value) {
            addCriterion("five_approval_role >", value, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleGreaterThanOrEqualTo(Integer value) {
            addCriterion("five_approval_role >=", value, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleLessThan(Integer value) {
            addCriterion("five_approval_role <", value, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleLessThanOrEqualTo(Integer value) {
            addCriterion("five_approval_role <=", value, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleIn(List<Integer> values) {
            addCriterion("five_approval_role in", values, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleNotIn(List<Integer> values) {
            addCriterion("five_approval_role not in", values, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleBetween(Integer value1, Integer value2) {
            addCriterion("five_approval_role between", value1, value2, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andFiveApprovalRoleNotBetween(Integer value1, Integer value2) {
            addCriterion("five_approval_role not between", value1, value2, "fiveApprovalRole");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}